﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CWCS.Entity.SRM;

namespace CWCS.BLL
{
    public class CRCStatus
    {
        public string scno; //堆垛机编号
        public string Auto = "0";
        public string TaskType = "All"; //任务类型
        public string ForkType = "forkNo"; //任务类型
        public string CraneMode; //堆垛机模式


        public string AlarmInfo; //报警信息
        public string AlarmMessage; //报警信息
        public int Total_Alarm; //总报警


        public bool Change; //信息是否有变化
        public string OldLabelInfo; //上一次信息
        public string LabelInfo;//显示信息
        public string NewLabelInfo;//显示信息

        public string SCStatus= "Equipment_Error"; //堆垛机状态(Equipment_OK可用，Equipment_Error不可用)
        public string SCTaskFlag = "0";//获取任务标记(0不可获取,1可获取非转轨任务，2可获取转轨任务)

        public string TaskNo = "0";//任务号
        public string Fromstation;//起始地址
        public string Tostation;//目标地址
        public string MESLocation;//充电柜货位号
        public string Barcode;//托盘号



        public string STAToStation;//输送机目标地址


        public string Position;//当前位置
        //----------------工位2信息-------------
        public string TaskNo2 = "0";//任务号
        public string Fromstation2;//起始地址
        public string Tostation2;//目标地址
        public string MESLocation2;//充电柜货位号
        public string Barcode2;//托盘号
        public string STAToStation2;//输送机目标地址
        //-------------------------------------

        public string FunctionReport;//函数类型
        public string FunctionMode;//函数模式
        public string ActTU;//当前动作的货叉
        public int forkStatus1; //货叉1状态
        public int forkStatus2; //货叉2状态
        public string FireFlag;//火警状态：16#01表示检测到烟感信号，16#02表示检测到温感信号，16#03表示同时检测到烟感和温感信号
        public string ActionPoint;//动作端
        public string AisleNumber;//巷道号 01--09
        public string RackSide;//巷道左右边 01左 02右
        public string RackPosition;//列值 001--032
        public string RackPlace;//货位内左右/1,2
        public string RackLevel="1";//层值 01--08
        public string RackDepth;//深度 01--02
        public SCTaskMode taskMode = SCTaskMode.Auto;
        public string isInitial = "0";//是否完成初始化
        public string isOk = "1";//是否设置可用
        public string SCDoorStatu;
        public string  oldSCDoorStatu;
        public bool sendFlag = false;
        public bool DoorStatuChange = false;
    }
    public class ScMsg
    {
        public string type { get; set; }
        public string Msg { get; set; }
    }

    public class ScInfo
    {
        public SCTaskMode sCTaskMode { get; set; }
        public CRCObject cco { get; set; }
        public List<CRCStatus> list_srm_info { get; set; }
    }
    public class SCMode
    {
        public string user { get; set; }
        public string scno { get; set; }
        public SCTaskMode sCTaskMode { get; set; }
    }
    public class ChangeTaskType
    {
        public string user { get; set; }
        public string scno { get; set; }
        public SCTaskType taskType { get; set; }
    }
    public class ChangeForkNo
    {
        public string user { get; set; }
        public string scno { get; set; }
        public ForkNoType forkNo { get; set; }
    }
    public class SendTask
    {
        public string user { get; set; }
        public string taskno { get; set; }
        public string taskno2 { get; set; }
        public string scno { get; set; }
        public string sourceAddress { get; set; }
        public string targetAddress { get; set; }
        public string BarCode { get; set; }
        public SRMCommand cmdType { get; set; }
        public int forkNo { get; set; }
    }

}
